const companyRoutes = {
  path: 'company_manage',
  name: 'CompanyManage',
  component: () => import('@/views/user/index.vue'),
  meta: { title: '企业主管理' },
  redirect: '/user/company_manage/company_list',
  children: [
    {
      path: 'company_list',
      name: 'CompanyList',
      component: () => import('@/views/user/company-list/company-list'),
      meta: { title: '企业主管理', noCache: true }
    },
    {
      path: 'company_info',
      name: 'CompanyInfo',
      hidden: true,
      component: () => import('@/views/user/company-list/company-info'),
      meta: { title: '企业主资料', noCache: true }
    },
    {
      path: 'company_add',
      name: 'CompanyAdd',
      hidden: true,
      component: () => import('@/views/user/company-list/company-edit'),
      meta: { title: '新增企业主', noCache: true }
    },
    {
      path: 'company_edit',
      name: 'CompanyEdit',
      hidden: true,
      component: () => import('@/views/user/company-list/company-edit'),
      meta: { title: '编辑企业主', noCache: true }
    },
    {
      path: 'company_setting',
      name: 'CompanySetting',
      hidden: true,
      component: () => import('@/views/user/company-list/company-setting'),
      meta: { title: '充值设置', noCache: true }
    },
    {
      path: 'add_integral_option',
      name: 'AddIntegralOption',
      hidden: true,
      component: () => import('@/views/user/company-list/integral-option'),
      meta: { title: '新增积分套餐', noCache: true }
    },
    {
      path: 'edit_integral_option',
      name: 'EditIntegralOption',
      hidden: true,
      component: () => import('@/views/user/company-list/integral-option'),
      meta: { title: '编辑积分套餐', noCache: true }
    },
    {
      path: 'company_invoice',
      name: 'CompanyInvoice',
      hidden: true,
      component: () => import('@/views/user/company-list/company-invoice'),
      meta: { title: '开票记录', noCache: true }
    }
  ]
}

export default companyRoutes
